.box {
    display: block;
}
.flex {
    display: inline-block;
    vertical-align: middle;
}
